package com.cavy.platform.server.domain.job;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class TimeoutErrorJob extends AbstractJobAction {
    protected String message;

    public TimeoutErrorJob(Job job) {
        super(job);
        this.message = "任务超时";
    }

    public TimeoutErrorJob() {
    }

    @Override
    public void initJobStatus() {
        this.job.status = JobStatus.ERROR;
    }

    public void save() {
        save(this);
    }
}
